(0) Obligation:

Clauses:

insert(X, void, tree(X, void, void)).
insert(X, tree(X, Left, Right), tree(X, Left, Right)).
insert(X, tree(Y, Left, Right), tree(Y, Left1, Right)) :- ','(less(X, Y), insert(X, Left, Left1)).
insert(X, tree(Y, Left, Right), tree(Y, Left, Right1)) :- ','(less(Y, X), insert(X, Right, Right1)).
less(0, s(X1)).
less(s(X), s(Y)) :- less(X, Y).

Query: insert(a,g,a)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

lessA(0, s(T55)).
lessA(s(T62), s(T61)) :- lessA(T62, T61).
lessB(0, s(T94)).
lessB(s(T99), s(T101)) :- lessB(T99, T101).
pC(T43, T42, T22, T44) :- lessA(T43, T42).
pC(T47, T42, T22, T48) :- ','(lessA(T47, T42), insertD(s(T47), T22, T48)).
pE(T78, T82, T80, T83) :- lessB(T78, T82).
pE(T78, T86, T80, T87) :- ','(lessB(T78, T86), insertD(T86, T80, T87)).
insertD(T5, void, tree(T5, void, void)).
insertD(T12, tree(T12, T13, T14), tree(T12, T13, T14)).
insertD(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) :- insertD(0, T22, T32).
insertD(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) :- pC(T43, T42, T22, T44).
insertD(T82, tree(T78, T79, T80), tree(T78, T79, T83)) :- pE(T78, T82, T80, T83).
insertD(s(T124), tree(0, T113, T114), tree(0, T113, T123)) :- insertD(s(T124), T114, T123).
insertD(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) :- lessB(T131, T133).
insertD(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) :- ','(lessB(T131, T137), insertD(s(T137), T114, T138)).
insertD(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) :- insertD(0, T152, T162).
insertD(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) :- pC(T173, T172, T152, T174).
insertD(T192, tree(T188, T189, T190), tree(T188, T189, T193)) :- pE(T188, T192, T190, T193).
insertD(s(T214), tree(0, T203, T204), tree(0, T203, T213)) :- insertD(s(T214), T204, T213).
insertD(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) :- lessB(T221, T223).
insertD(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) :- ','(lessB(T221, T227), insertD(s(T227), T204, T228)).

Query: insertD(a,g,a)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
insertD_in: (f,b,f) (b,b,f)
pC_in: (b,b,b,f) (f,b,b,f)
lessA_in: (b,b) (f,b)
pE_in: (b,b,b,f) (b,f,b,f)
lessB_in: (b,b) (b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

INSERTD_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_AGA(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
INSERTD_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERTD_IN_GGA(0, T22, T32)
INSERTD_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_GGA(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
INSERTD_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERTD_IN_GGA(0, T22, T32)
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_GGA(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → PC_IN_GGGA(T43, T42, T22, T44)
PC_IN_GGGA(T43, T42, T22, T44) → U3_GGGA(T43, T42, T22, T44, lessA_in_gg(T43, T42))
PC_IN_GGGA(T43, T42, T22, T44) → LESSA_IN_GG(T43, T42)
LESSA_IN_GG(s(T62), s(T61)) → U1_GG(T62, T61, lessA_in_gg(T62, T61))
LESSA_IN_GG(s(T62), s(T61)) → LESSA_IN_GG(T62, T61)
PC_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_GGGA(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U4_GGGA(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → INSERTD_IN_GGA(s(T47), T22, T48)
INSERTD_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_GGA(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
INSERTD_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GGGA(T78, T82, T80, T83)
PE_IN_GGGA(T78, T82, T80, T83) → U6_GGGA(T78, T82, T80, T83, lessB_in_gg(T78, T82))
PE_IN_GGGA(T78, T82, T80, T83) → LESSB_IN_GG(T78, T82)
LESSB_IN_GG(s(T99), s(T101)) → U2_GG(T99, T101, lessB_in_gg(T99, T101))
LESSB_IN_GG(s(T99), s(T101)) → LESSB_IN_GG(T99, T101)
PE_IN_GGGA(T78, T86, T80, T87) → U7_GGGA(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_GGGA(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_GGGA(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
U7_GGGA(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → INSERTD_IN_GGA(T86, T80, T87)
INSERTD_IN_GGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_GGA(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
INSERTD_IN_GGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_GGA(s(T124), T114, T123)
INSERTD_IN_GGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_GGA(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
INSERTD_IN_GGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → LESSB_IN_GG(T131, T133)
INSERTD_IN_GGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_GGA(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_GGA(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_GGA(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
U14_GGA(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → INSERTD_IN_GGA(s(T137), T114, T138)
INSERTD_IN_GGA(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_GGA(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
INSERTD_IN_GGA(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_GGA(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
INSERTD_IN_GGA(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_GGA(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
INSERTD_IN_GGA(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_GGA(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
INSERTD_IN_GGA(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_GGA(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
INSERTD_IN_GGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_GGA(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_GGA(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_GGA(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U21_GGA(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → INSERTD_IN_GGA(s(T227), T204, T228)
INSERTD_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_AGA(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
INSERTD_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → PC_IN_AGGA(T43, T42, T22, T44)
PC_IN_AGGA(T43, T42, T22, T44) → U3_AGGA(T43, T42, T22, T44, lessA_in_ag(T43, T42))
PC_IN_AGGA(T43, T42, T22, T44) → LESSA_IN_AG(T43, T42)
LESSA_IN_AG(s(T62), s(T61)) → U1_AG(T62, T61, lessA_in_ag(T62, T61))
LESSA_IN_AG(s(T62), s(T61)) → LESSA_IN_AG(T62, T61)
PC_IN_AGGA(T47, T42, T22, T48) → U4_AGGA(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_AGGA(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_AGGA(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U4_AGGA(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → INSERTD_IN_GGA(s(T47), T22, T48)
INSERTD_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_AGA(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
INSERTD_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GAGA(T78, T82, T80, T83)
PE_IN_GAGA(T78, T82, T80, T83) → U6_GAGA(T78, T82, T80, T83, lessB_in_ga(T78, T82))
PE_IN_GAGA(T78, T82, T80, T83) → LESSB_IN_GA(T78, T82)
LESSB_IN_GA(s(T99), s(T101)) → U2_GA(T99, T101, lessB_in_ga(T99, T101))
LESSB_IN_GA(s(T99), s(T101)) → LESSB_IN_GA(T99, T101)
PE_IN_GAGA(T78, T86, T80, T87) → U7_GAGA(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_GAGA(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_GAGA(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
U7_GAGA(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → INSERTD_IN_AGA(T86, T80, T87)
INSERTD_IN_AGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_AGA(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
INSERTD_IN_AGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_AGA(s(T124), T114, T123)
INSERTD_IN_AGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_AGA(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
INSERTD_IN_AGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → LESSB_IN_GA(T131, T133)
INSERTD_IN_AGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_AGA(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_AGA(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_AGA(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
U14_AGA(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → INSERTD_IN_AGA(s(T137), T114, T138)
INSERTD_IN_AGA(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_AGA(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
INSERTD_IN_AGA(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_AGA(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
INSERTD_IN_AGA(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_AGA(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
INSERTD_IN_AGA(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_AGA(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
INSERTD_IN_AGA(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_AGA(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
INSERTD_IN_AGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_AGA(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_AGA(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_AGA(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U21_AGA(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → INSERTD_IN_AGA(s(T227), T204, T228)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
INSERTD_IN_AGA(x1, x2, x3)  =  INSERTD_IN_AGA(x2)
U9_AGA(x1, x2, x3, x4, x5)  =  U9_AGA(x1, x2, x3, x5)
INSERTD_IN_GGA(x1, x2, x3)  =  INSERTD_IN_GGA(x1, x2)
U9_GGA(x1, x2, x3, x4, x5)  =  U9_GGA(x1, x2, x3, x5)
U10_GGA(x1, x2, x3, x4, x5, x6)  =  U10_GGA(x1, x2, x3, x4, x6)
PC_IN_GGGA(x1, x2, x3, x4)  =  PC_IN_GGGA(x1, x2, x3)
U3_GGGA(x1, x2, x3, x4, x5)  =  U3_GGGA(x1, x2, x3, x5)
LESSA_IN_GG(x1, x2)  =  LESSA_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x1, x2, x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x2, x3, x5)
U5_GGGA(x1, x2, x3, x4, x5)  =  U5_GGGA(x1, x2, x3, x5)
U11_GGA(x1, x2, x3, x4, x5, x6)  =  U11_GGA(x1, x2, x3, x4, x6)
PE_IN_GGGA(x1, x2, x3, x4)  =  PE_IN_GGGA(x1, x2, x3)
U6_GGGA(x1, x2, x3, x4, x5)  =  U6_GGGA(x1, x2, x3, x5)
LESSB_IN_GG(x1, x2)  =  LESSB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x1, x2, x3)
U7_GGGA(x1, x2, x3, x4, x5)  =  U7_GGGA(x1, x2, x3, x5)
U8_GGGA(x1, x2, x3, x4, x5)  =  U8_GGGA(x1, x2, x3, x5)
U12_GGA(x1, x2, x3, x4, x5)  =  U12_GGA(x1, x2, x3, x5)
U13_GGA(x1, x2, x3, x4, x5, x6)  =  U13_GGA(x1, x2, x3, x4, x6)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x2, x3, x4, x6)
U15_GGA(x1, x2, x3, x4, x5, x6)  =  U15_GGA(x1, x2, x3, x4, x6)
U16_GGA(x1, x2, x3, x4, x5)  =  U16_GGA(x1, x2, x3, x5)
U17_GGA(x1, x2, x3, x4, x5, x6)  =  U17_GGA(x1, x2, x3, x4, x6)
U18_GGA(x1, x2, x3, x4, x5, x6)  =  U18_GGA(x1, x2, x3, x4, x6)
U19_GGA(x1, x2, x3, x4, x5)  =  U19_GGA(x1, x2, x3, x5)
U20_GGA(x1, x2, x3, x4, x5, x6)  =  U20_GGA(x1, x2, x3, x4, x6)
U21_GGA(x1, x2, x3, x4, x5, x6)  =  U21_GGA(x1, x2, x3, x4, x6)
U22_GGA(x1, x2, x3, x4, x5, x6)  =  U22_GGA(x1, x2, x3, x4, x6)
U10_AGA(x1, x2, x3, x4, x5, x6)  =  U10_AGA(x2, x3, x4, x6)
PC_IN_AGGA(x1, x2, x3, x4)  =  PC_IN_AGGA(x2, x3)
U3_AGGA(x1, x2, x3, x4, x5)  =  U3_AGGA(x2, x3, x5)
LESSA_IN_AG(x1, x2)  =  LESSA_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x2, x3)
U4_AGGA(x1, x2, x3, x4, x5)  =  U4_AGGA(x2, x3, x5)
U5_AGGA(x1, x2, x3, x4, x5)  =  U5_AGGA(x1, x2, x3, x5)
U11_AGA(x1, x2, x3, x4, x5, x6)  =  U11_AGA(x2, x3, x4, x6)
PE_IN_GAGA(x1, x2, x3, x4)  =  PE_IN_GAGA(x1, x3)
U6_GAGA(x1, x2, x3, x4, x5)  =  U6_GAGA(x1, x3, x5)
LESSB_IN_GA(x1, x2)  =  LESSB_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x1, x3)
U7_GAGA(x1, x2, x3, x4, x5)  =  U7_GAGA(x1, x3, x5)
U8_GAGA(x1, x2, x3, x4, x5)  =  U8_GAGA(x1, x3, x5)
U12_AGA(x1, x2, x3, x4, x5)  =  U12_AGA(x2, x3, x5)
U13_AGA(x1, x2, x3, x4, x5, x6)  =  U13_AGA(x2, x3, x4, x6)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x2, x3, x4, x6)
U15_AGA(x1, x2, x3, x4, x5, x6)  =  U15_AGA(x2, x3, x4, x6)
U16_AGA(x1, x2, x3, x4, x5)  =  U16_AGA(x1, x2, x3, x5)
U17_AGA(x1, x2, x3, x4, x5, x6)  =  U17_AGA(x2, x3, x4, x6)
U18_AGA(x1, x2, x3, x4, x5, x6)  =  U18_AGA(x2, x3, x4, x6)
U19_AGA(x1, x2, x3, x4, x5)  =  U19_AGA(x2, x3, x5)
U20_AGA(x1, x2, x3, x4, x5, x6)  =  U20_AGA(x2, x3, x4, x6)
U21_AGA(x1, x2, x3, x4, x5, x6)  =  U21_AGA(x2, x3, x4, x6)
U22_AGA(x1, x2, x3, x4, x5, x6)  =  U22_AGA(x2, x3, x4, x6)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

INSERTD_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_AGA(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
INSERTD_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERTD_IN_GGA(0, T22, T32)
INSERTD_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_GGA(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
INSERTD_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERTD_IN_GGA(0, T22, T32)
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_GGA(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → PC_IN_GGGA(T43, T42, T22, T44)
PC_IN_GGGA(T43, T42, T22, T44) → U3_GGGA(T43, T42, T22, T44, lessA_in_gg(T43, T42))
PC_IN_GGGA(T43, T42, T22, T44) → LESSA_IN_GG(T43, T42)
LESSA_IN_GG(s(T62), s(T61)) → U1_GG(T62, T61, lessA_in_gg(T62, T61))
LESSA_IN_GG(s(T62), s(T61)) → LESSA_IN_GG(T62, T61)
PC_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_GGGA(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U4_GGGA(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → INSERTD_IN_GGA(s(T47), T22, T48)
INSERTD_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_GGA(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
INSERTD_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GGGA(T78, T82, T80, T83)
PE_IN_GGGA(T78, T82, T80, T83) → U6_GGGA(T78, T82, T80, T83, lessB_in_gg(T78, T82))
PE_IN_GGGA(T78, T82, T80, T83) → LESSB_IN_GG(T78, T82)
LESSB_IN_GG(s(T99), s(T101)) → U2_GG(T99, T101, lessB_in_gg(T99, T101))
LESSB_IN_GG(s(T99), s(T101)) → LESSB_IN_GG(T99, T101)
PE_IN_GGGA(T78, T86, T80, T87) → U7_GGGA(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_GGGA(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_GGGA(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
U7_GGGA(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → INSERTD_IN_GGA(T86, T80, T87)
INSERTD_IN_GGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_GGA(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
INSERTD_IN_GGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_GGA(s(T124), T114, T123)
INSERTD_IN_GGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_GGA(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
INSERTD_IN_GGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → LESSB_IN_GG(T131, T133)
INSERTD_IN_GGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_GGA(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_GGA(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_GGA(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
U14_GGA(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → INSERTD_IN_GGA(s(T137), T114, T138)
INSERTD_IN_GGA(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_GGA(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
INSERTD_IN_GGA(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_GGA(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
INSERTD_IN_GGA(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_GGA(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
INSERTD_IN_GGA(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_GGA(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
INSERTD_IN_GGA(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_GGA(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
INSERTD_IN_GGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_GGA(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_GGA(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_GGA(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U21_GGA(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → INSERTD_IN_GGA(s(T227), T204, T228)
INSERTD_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_AGA(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
INSERTD_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → PC_IN_AGGA(T43, T42, T22, T44)
PC_IN_AGGA(T43, T42, T22, T44) → U3_AGGA(T43, T42, T22, T44, lessA_in_ag(T43, T42))
PC_IN_AGGA(T43, T42, T22, T44) → LESSA_IN_AG(T43, T42)
LESSA_IN_AG(s(T62), s(T61)) → U1_AG(T62, T61, lessA_in_ag(T62, T61))
LESSA_IN_AG(s(T62), s(T61)) → LESSA_IN_AG(T62, T61)
PC_IN_AGGA(T47, T42, T22, T48) → U4_AGGA(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_AGGA(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_AGGA(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U4_AGGA(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → INSERTD_IN_GGA(s(T47), T22, T48)
INSERTD_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_AGA(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
INSERTD_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GAGA(T78, T82, T80, T83)
PE_IN_GAGA(T78, T82, T80, T83) → U6_GAGA(T78, T82, T80, T83, lessB_in_ga(T78, T82))
PE_IN_GAGA(T78, T82, T80, T83) → LESSB_IN_GA(T78, T82)
LESSB_IN_GA(s(T99), s(T101)) → U2_GA(T99, T101, lessB_in_ga(T99, T101))
LESSB_IN_GA(s(T99), s(T101)) → LESSB_IN_GA(T99, T101)
PE_IN_GAGA(T78, T86, T80, T87) → U7_GAGA(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_GAGA(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_GAGA(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
U7_GAGA(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → INSERTD_IN_AGA(T86, T80, T87)
INSERTD_IN_AGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_AGA(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
INSERTD_IN_AGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_AGA(s(T124), T114, T123)
INSERTD_IN_AGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_AGA(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
INSERTD_IN_AGA(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → LESSB_IN_GA(T131, T133)
INSERTD_IN_AGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_AGA(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_AGA(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_AGA(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
U14_AGA(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → INSERTD_IN_AGA(s(T137), T114, T138)
INSERTD_IN_AGA(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_AGA(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
INSERTD_IN_AGA(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_AGA(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
INSERTD_IN_AGA(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_AGA(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
INSERTD_IN_AGA(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_AGA(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
INSERTD_IN_AGA(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_AGA(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
INSERTD_IN_AGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_AGA(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_AGA(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_AGA(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U21_AGA(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → INSERTD_IN_AGA(s(T227), T204, T228)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
INSERTD_IN_AGA(x1, x2, x3)  =  INSERTD_IN_AGA(x2)
U9_AGA(x1, x2, x3, x4, x5)  =  U9_AGA(x1, x2, x3, x5)
INSERTD_IN_GGA(x1, x2, x3)  =  INSERTD_IN_GGA(x1, x2)
U9_GGA(x1, x2, x3, x4, x5)  =  U9_GGA(x1, x2, x3, x5)
U10_GGA(x1, x2, x3, x4, x5, x6)  =  U10_GGA(x1, x2, x3, x4, x6)
PC_IN_GGGA(x1, x2, x3, x4)  =  PC_IN_GGGA(x1, x2, x3)
U3_GGGA(x1, x2, x3, x4, x5)  =  U3_GGGA(x1, x2, x3, x5)
LESSA_IN_GG(x1, x2)  =  LESSA_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x1, x2, x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x2, x3, x5)
U5_GGGA(x1, x2, x3, x4, x5)  =  U5_GGGA(x1, x2, x3, x5)
U11_GGA(x1, x2, x3, x4, x5, x6)  =  U11_GGA(x1, x2, x3, x4, x6)
PE_IN_GGGA(x1, x2, x3, x4)  =  PE_IN_GGGA(x1, x2, x3)
U6_GGGA(x1, x2, x3, x4, x5)  =  U6_GGGA(x1, x2, x3, x5)
LESSB_IN_GG(x1, x2)  =  LESSB_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x1, x2, x3)
U7_GGGA(x1, x2, x3, x4, x5)  =  U7_GGGA(x1, x2, x3, x5)
U8_GGGA(x1, x2, x3, x4, x5)  =  U8_GGGA(x1, x2, x3, x5)
U12_GGA(x1, x2, x3, x4, x5)  =  U12_GGA(x1, x2, x3, x5)
U13_GGA(x1, x2, x3, x4, x5, x6)  =  U13_GGA(x1, x2, x3, x4, x6)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x2, x3, x4, x6)
U15_GGA(x1, x2, x3, x4, x5, x6)  =  U15_GGA(x1, x2, x3, x4, x6)
U16_GGA(x1, x2, x3, x4, x5)  =  U16_GGA(x1, x2, x3, x5)
U17_GGA(x1, x2, x3, x4, x5, x6)  =  U17_GGA(x1, x2, x3, x4, x6)
U18_GGA(x1, x2, x3, x4, x5, x6)  =  U18_GGA(x1, x2, x3, x4, x6)
U19_GGA(x1, x2, x3, x4, x5)  =  U19_GGA(x1, x2, x3, x5)
U20_GGA(x1, x2, x3, x4, x5, x6)  =  U20_GGA(x1, x2, x3, x4, x6)
U21_GGA(x1, x2, x3, x4, x5, x6)  =  U21_GGA(x1, x2, x3, x4, x6)
U22_GGA(x1, x2, x3, x4, x5, x6)  =  U22_GGA(x1, x2, x3, x4, x6)
U10_AGA(x1, x2, x3, x4, x5, x6)  =  U10_AGA(x2, x3, x4, x6)
PC_IN_AGGA(x1, x2, x3, x4)  =  PC_IN_AGGA(x2, x3)
U3_AGGA(x1, x2, x3, x4, x5)  =  U3_AGGA(x2, x3, x5)
LESSA_IN_AG(x1, x2)  =  LESSA_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x2, x3)
U4_AGGA(x1, x2, x3, x4, x5)  =  U4_AGGA(x2, x3, x5)
U5_AGGA(x1, x2, x3, x4, x5)  =  U5_AGGA(x1, x2, x3, x5)
U11_AGA(x1, x2, x3, x4, x5, x6)  =  U11_AGA(x2, x3, x4, x6)
PE_IN_GAGA(x1, x2, x3, x4)  =  PE_IN_GAGA(x1, x3)
U6_GAGA(x1, x2, x3, x4, x5)  =  U6_GAGA(x1, x3, x5)
LESSB_IN_GA(x1, x2)  =  LESSB_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x1, x3)
U7_GAGA(x1, x2, x3, x4, x5)  =  U7_GAGA(x1, x3, x5)
U8_GAGA(x1, x2, x3, x4, x5)  =  U8_GAGA(x1, x3, x5)
U12_AGA(x1, x2, x3, x4, x5)  =  U12_AGA(x2, x3, x5)
U13_AGA(x1, x2, x3, x4, x5, x6)  =  U13_AGA(x2, x3, x4, x6)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x2, x3, x4, x6)
U15_AGA(x1, x2, x3, x4, x5, x6)  =  U15_AGA(x2, x3, x4, x6)
U16_AGA(x1, x2, x3, x4, x5)  =  U16_AGA(x1, x2, x3, x5)
U17_AGA(x1, x2, x3, x4, x5, x6)  =  U17_AGA(x2, x3, x4, x6)
U18_AGA(x1, x2, x3, x4, x5, x6)  =  U18_AGA(x2, x3, x4, x6)
U19_AGA(x1, x2, x3, x4, x5)  =  U19_AGA(x2, x3, x5)
U20_AGA(x1, x2, x3, x4, x5, x6)  =  U20_AGA(x2, x3, x4, x6)
U21_AGA(x1, x2, x3, x4, x5, x6)  =  U21_AGA(x2, x3, x4, x6)
U22_AGA(x1, x2, x3, x4, x5, x6)  =  U22_AGA(x2, x3, x4, x6)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 6 SCCs with 46 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSB_IN_GA(s(T99), s(T101)) → LESSB_IN_GA(T99, T101)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
LESSB_IN_GA(x1, x2)  =  LESSB_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSB_IN_GA(s(T99), s(T101)) → LESSB_IN_GA(T99, T101)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LESSB_IN_GA(x1, x2)  =  LESSB_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSB_IN_GA(s(T99)) → LESSB_IN_GA(T99)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSB_IN_GA(s(T99)) → LESSB_IN_GA(T99)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSA_IN_AG(s(T62), s(T61)) → LESSA_IN_AG(T62, T61)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
LESSA_IN_AG(x1, x2)  =  LESSA_IN_AG(x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSA_IN_AG(s(T62), s(T61)) → LESSA_IN_AG(T62, T61)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LESSA_IN_AG(x1, x2)  =  LESSA_IN_AG(x2)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSA_IN_AG(s(T61)) → LESSA_IN_AG(T61)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSA_IN_AG(s(T61)) → LESSA_IN_AG(T61)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSB_IN_GG(s(T99), s(T101)) → LESSB_IN_GG(T99, T101)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
LESSB_IN_GG(x1, x2)  =  LESSB_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(24) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(25) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSB_IN_GG(s(T99), s(T101)) → LESSB_IN_GG(T99, T101)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(26) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(27) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSB_IN_GG(s(T99), s(T101)) → LESSB_IN_GG(T99, T101)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(28) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSB_IN_GG(s(T99), s(T101)) → LESSB_IN_GG(T99, T101)
    The graph contains the following edges 1 > 1, 2 > 2

(29) YES

(30) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSA_IN_GG(s(T62), s(T61)) → LESSA_IN_GG(T62, T61)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
LESSA_IN_GG(x1, x2)  =  LESSA_IN_GG(x1, x2)

We have to consider all (P,R,Pi)-chains

(31) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(32) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LESSA_IN_GG(s(T62), s(T61)) → LESSA_IN_GG(T62, T61)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains

(33) PiDPToQDPProof (EQUIVALENT transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(34) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LESSA_IN_GG(s(T62), s(T61)) → LESSA_IN_GG(T62, T61)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(35) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LESSA_IN_GG(s(T62), s(T61)) → LESSA_IN_GG(T62, T61)
    The graph contains the following edges 1 > 1, 2 > 2

(36) YES

(37) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

INSERTD_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GGGA(T78, T82, T80, T83)
PE_IN_GGGA(T78, T86, T80, T87) → U7_GGGA(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_GGGA(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → INSERTD_IN_GGA(T86, T80, T87)
INSERTD_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERTD_IN_GGA(0, T22, T32)
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → PC_IN_GGGA(T43, T42, T22, T44)
PC_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → INSERTD_IN_GGA(s(T47), T22, T48)
INSERTD_IN_GGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_GGA(s(T124), T114, T123)
INSERTD_IN_GGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_GGA(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_GGA(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → INSERTD_IN_GGA(s(T137), T114, T138)
INSERTD_IN_GGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_GGA(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_GGA(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → INSERTD_IN_GGA(s(T227), T204, T228)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
INSERTD_IN_GGA(x1, x2, x3)  =  INSERTD_IN_GGA(x1, x2)
PC_IN_GGGA(x1, x2, x3, x4)  =  PC_IN_GGGA(x1, x2, x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x2, x3, x5)
PE_IN_GGGA(x1, x2, x3, x4)  =  PE_IN_GGGA(x1, x2, x3)
U7_GGGA(x1, x2, x3, x4, x5)  =  U7_GGGA(x1, x2, x3, x5)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x2, x3, x4, x6)
U21_GGA(x1, x2, x3, x4, x5, x6)  =  U21_GGA(x1, x2, x3, x4, x6)

We have to consider all (P,R,Pi)-chains

(38) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(39) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

INSERTD_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GGGA(T78, T82, T80, T83)
PE_IN_GGGA(T78, T86, T80, T87) → U7_GGGA(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_GGGA(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → INSERTD_IN_GGA(T86, T80, T87)
INSERTD_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERTD_IN_GGA(0, T22, T32)
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → PC_IN_GGGA(T43, T42, T22, T44)
PC_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → INSERTD_IN_GGA(s(T47), T22, T48)
INSERTD_IN_GGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_GGA(s(T124), T114, T123)
INSERTD_IN_GGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_GGA(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_GGA(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → INSERTD_IN_GGA(s(T137), T114, T138)
INSERTD_IN_GGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_GGA(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_GGA(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → INSERTD_IN_GGA(s(T227), T204, T228)

The TRS R consists of the following rules:

lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
INSERTD_IN_GGA(x1, x2, x3)  =  INSERTD_IN_GGA(x1, x2)
PC_IN_GGGA(x1, x2, x3, x4)  =  PC_IN_GGGA(x1, x2, x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x2, x3, x5)
PE_IN_GGGA(x1, x2, x3, x4)  =  PE_IN_GGGA(x1, x2, x3)
U7_GGGA(x1, x2, x3, x4, x5)  =  U7_GGGA(x1, x2, x3, x5)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x2, x3, x4, x6)
U21_GGA(x1, x2, x3, x4, x5, x6)  =  U21_GGA(x1, x2, x3, x4, x6)

We have to consider all (P,R,Pi)-chains

(40) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(41) Obligation:

Q DP problem:
The TRS P consists of the following rules:

INSERTD_IN_GGA(T82, tree(T78, T79, T80)) → PE_IN_GGGA(T78, T82, T80)
PE_IN_GGGA(T78, T86, T80) → U7_GGGA(T78, T86, T80, lessB_in_gg(T78, T86))
U7_GGGA(T78, T86, T80, lessB_out_gg(T78, T86)) → INSERTD_IN_GGA(T86, T80)
INSERTD_IN_GGA(0, tree(s(T31), T22, T23)) → INSERTD_IN_GGA(0, T22)
INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23)) → PC_IN_GGGA(T43, T42, T22)
PC_IN_GGGA(T47, T42, T22) → U4_GGGA(T47, T42, T22, lessA_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, lessA_out_gg(T47, T42)) → INSERTD_IN_GGA(s(T47), T22)
INSERTD_IN_GGA(s(T124), tree(0, T113, T114)) → INSERTD_IN_GGA(s(T124), T114)
INSERTD_IN_GGA(s(T137), tree(s(T131), T113, T114)) → U14_GGA(T137, T131, T113, T114, lessB_in_gg(T131, T137))
U14_GGA(T137, T131, T113, T114, lessB_out_gg(T131, T137)) → INSERTD_IN_GGA(s(T137), T114)
INSERTD_IN_GGA(s(T227), tree(s(T221), T203, T204)) → U21_GGA(T227, T221, T203, T204, lessB_in_gg(T221, T227))
U21_GGA(T227, T221, T203, T204, lessB_out_gg(T221, T227)) → INSERTD_IN_GGA(s(T227), T204)

The TRS R consists of the following rules:

lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))

The set Q consists of the following terms:

lessB_in_gg(x0, x1)
lessA_in_gg(x0, x1)
U2_gg(x0, x1, x2)
U1_gg(x0, x1, x2)

We have to consider all (P,Q,R)-chains.

(42) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • PE_IN_GGGA(T78, T86, T80) → U7_GGGA(T78, T86, T80, lessB_in_gg(T78, T86))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

  • U7_GGGA(T78, T86, T80, lessB_out_gg(T78, T86)) → INSERTD_IN_GGA(T86, T80)
    The graph contains the following edges 2 >= 1, 4 > 1, 3 >= 2

  • INSERTD_IN_GGA(T82, tree(T78, T79, T80)) → PE_IN_GGGA(T78, T82, T80)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • PC_IN_GGGA(T47, T42, T22) → U4_GGGA(T47, T42, T22, lessA_in_gg(T47, T42))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3

  • INSERTD_IN_GGA(0, tree(s(T31), T22, T23)) → INSERTD_IN_GGA(0, T22)
    The graph contains the following edges 1 >= 1, 2 > 2

  • INSERTD_IN_GGA(s(T124), tree(0, T113, T114)) → INSERTD_IN_GGA(s(T124), T114)
    The graph contains the following edges 1 >= 1, 2 > 2

  • U4_GGGA(T47, T42, T22, lessA_out_gg(T47, T42)) → INSERTD_IN_GGA(s(T47), T22)
    The graph contains the following edges 3 >= 2

  • INSERTD_IN_GGA(s(T43), tree(s(T42), T22, T23)) → PC_IN_GGGA(T43, T42, T22)
    The graph contains the following edges 1 > 1, 2 > 2, 2 > 3

  • U14_GGA(T137, T131, T113, T114, lessB_out_gg(T131, T137)) → INSERTD_IN_GGA(s(T137), T114)
    The graph contains the following edges 4 >= 2

  • U21_GGA(T227, T221, T203, T204, lessB_out_gg(T221, T227)) → INSERTD_IN_GGA(s(T227), T204)
    The graph contains the following edges 4 >= 2

  • INSERTD_IN_GGA(s(T137), tree(s(T131), T113, T114)) → U14_GGA(T137, T131, T113, T114, lessB_in_gg(T131, T137))
    The graph contains the following edges 1 > 1, 2 > 2, 2 > 3, 2 > 4

  • INSERTD_IN_GGA(s(T227), tree(s(T221), T203, T204)) → U21_GGA(T227, T221, T203, T204, lessB_in_gg(T221, T227))
    The graph contains the following edges 1 > 1, 2 > 2, 2 > 3, 2 > 4

(43) YES

(44) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

INSERTD_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GAGA(T78, T82, T80, T83)
PE_IN_GAGA(T78, T86, T80, T87) → U7_GAGA(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_GAGA(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → INSERTD_IN_AGA(T86, T80, T87)
INSERTD_IN_AGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_AGA(s(T124), T114, T123)
INSERTD_IN_AGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_AGA(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_AGA(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → INSERTD_IN_AGA(s(T137), T114, T138)
INSERTD_IN_AGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_AGA(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_AGA(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → INSERTD_IN_AGA(s(T227), T204, T228)

The TRS R consists of the following rules:

insertD_in_aga(T5, void, tree(T5, void, void)) → insertD_out_aga(T5, void, tree(T5, void, void))
insertD_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_aga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(T5, void, tree(T5, void, void)) → insertD_out_gga(T5, void, tree(T5, void, void))
insertD_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insertD_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insertD_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U9_gga(T31, T22, T23, T32, insertD_in_gga(0, T22, T32))
insertD_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_gga(T43, T42, T22, T23, T44, pC_in_ggga(T43, T42, T22, T44))
pC_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, lessA_in_gg(T43, T42))
lessA_in_gg(0, s(T55)) → lessA_out_gg(0, s(T55))
lessA_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, lessA_in_gg(T62, T61))
U1_gg(T62, T61, lessA_out_gg(T62, T61)) → lessA_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, lessA_out_gg(T43, T42)) → pC_out_ggga(T43, T42, T22, T44)
pC_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, lessA_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, lessA_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
insertD_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_gga(T82, T78, T79, T80, T83, pE_in_ggga(T78, T82, T80, T83))
pE_in_ggga(T78, T82, T80, T83) → U6_ggga(T78, T82, T80, T83, lessB_in_gg(T78, T82))
lessB_in_gg(0, s(T94)) → lessB_out_gg(0, s(T94))
lessB_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, lessB_in_gg(T99, T101))
U2_gg(T99, T101, lessB_out_gg(T99, T101)) → lessB_out_gg(s(T99), s(T101))
U6_ggga(T78, T82, T80, T83, lessB_out_gg(T78, T82)) → pE_out_ggga(T78, T82, T80, T83)
pE_in_ggga(T78, T86, T80, T87) → U7_ggga(T78, T86, T80, T87, lessB_in_gg(T78, T86))
U7_ggga(T78, T86, T80, T87, lessB_out_gg(T78, T86)) → U8_ggga(T78, T86, T80, T87, insertD_in_gga(T86, T80, T87))
insertD_in_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_gga(T124, T113, T114, T123, insertD_in_gga(s(T124), T114, T123))
insertD_in_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_gga(T133, T131, T113, T114, T134, lessB_in_gg(T131, T133))
U13_gga(T133, T131, T113, T114, T134, lessB_out_gg(T131, T133)) → insertD_out_gga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_gga(T137, T131, T113, T114, T138, lessB_in_gg(T131, T137))
U14_gga(T137, T131, T113, T114, T138, lessB_out_gg(T131, T137)) → U15_gga(T137, T131, T113, T114, T138, insertD_in_gga(s(T137), T114, T138))
insertD_in_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_gga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
insertD_in_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_gga(T173, T172, T152, T153, T174, pC_in_ggga(T173, T172, T152, T174))
U17_gga(T173, T172, T152, T153, T174, pC_out_ggga(T173, T172, T152, T174)) → insertD_out_gga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_gga(T192, T188, T189, T190, T193, pE_in_ggga(T188, T192, T190, T193))
U18_gga(T192, T188, T189, T190, T193, pE_out_ggga(T188, T192, T190, T193)) → insertD_out_gga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_gga(T214, T203, T204, T213, insertD_in_gga(s(T214), T204, T213))
insertD_in_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_gga(T223, T221, T203, T204, T224, lessB_in_gg(T221, T223))
U20_gga(T223, T221, T203, T204, T224, lessB_out_gg(T221, T223)) → insertD_out_gga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_gga(T227, T221, T203, T204, T228, lessB_in_gg(T221, T227))
U21_gga(T227, T221, T203, T204, T228, lessB_out_gg(T221, T227)) → U22_gga(T227, T221, T203, T204, T228, insertD_in_gga(s(T227), T204, T228))
U22_gga(T227, T221, T203, T204, T228, insertD_out_gga(s(T227), T204, T228)) → insertD_out_gga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_gga(T214, T203, T204, T213, insertD_out_gga(s(T214), T204, T213)) → insertD_out_gga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U16_gga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_gga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
U15_gga(T137, T131, T113, T114, T138, insertD_out_gga(s(T137), T114, T138)) → insertD_out_gga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_gga(T124, T113, T114, T123, insertD_out_gga(s(T124), T114, T123)) → insertD_out_gga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_ggga(T78, T86, T80, T87, insertD_out_gga(T86, T80, T87)) → pE_out_ggga(T78, T86, T80, T87)
U11_gga(T82, T78, T79, T80, T83, pE_out_ggga(T78, T82, T80, T83)) → insertD_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
U5_ggga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_ggga(T47, T42, T22, T48)
U10_gga(T43, T42, T22, T23, T44, pC_out_ggga(T43, T42, T22, T44)) → insertD_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U9_gga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U9_aga(T31, T22, T23, T32, insertD_out_gga(0, T22, T32)) → insertD_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insertD_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U10_aga(T43, T42, T22, T23, T44, pC_in_agga(T43, T42, T22, T44))
pC_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, lessA_in_ag(T43, T42))
lessA_in_ag(0, s(T55)) → lessA_out_ag(0, s(T55))
lessA_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, lessA_in_ag(T62, T61))
U1_ag(T62, T61, lessA_out_ag(T62, T61)) → lessA_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, lessA_out_ag(T43, T42)) → pC_out_agga(T43, T42, T22, T44)
pC_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, lessA_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, lessA_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insertD_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insertD_out_gga(s(T47), T22, T48)) → pC_out_agga(T47, T42, T22, T48)
U10_aga(T43, T42, T22, T23, T44, pC_out_agga(T43, T42, T22, T44)) → insertD_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insertD_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U11_aga(T82, T78, T79, T80, T83, pE_in_gaga(T78, T82, T80, T83))
pE_in_gaga(T78, T82, T80, T83) → U6_gaga(T78, T82, T80, T83, lessB_in_ga(T78, T82))
lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))
U6_gaga(T78, T82, T80, T83, lessB_out_ga(T78, T82)) → pE_out_gaga(T78, T82, T80, T83)
pE_in_gaga(T78, T86, T80, T87) → U7_gaga(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_gaga(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → U8_gaga(T78, T86, T80, T87, insertD_in_aga(T86, T80, T87))
insertD_in_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → U12_aga(T124, T113, T114, T123, insertD_in_aga(s(T124), T114, T123))
insertD_in_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134)) → U13_aga(T133, T131, T113, T114, T134, lessB_in_ga(T131, T133))
U13_aga(T133, T131, T113, T114, T134, lessB_out_ga(T131, T133)) → insertD_out_aga(s(T133), tree(s(T131), T113, T114), tree(s(T131), T113, T134))
insertD_in_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_aga(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_aga(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → U15_aga(T137, T131, T113, T114, T138, insertD_in_aga(s(T137), T114, T138))
insertD_in_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153)) → U16_aga(T161, T152, T153, T162, insertD_in_gga(0, T152, T162))
U16_aga(T161, T152, T153, T162, insertD_out_gga(0, T152, T162)) → insertD_out_aga(0, tree(s(T161), T152, T153), tree(s(T161), T162, T153))
insertD_in_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153)) → U17_aga(T173, T172, T152, T153, T174, pC_in_agga(T173, T172, T152, T174))
U17_aga(T173, T172, T152, T153, T174, pC_out_agga(T173, T172, T152, T174)) → insertD_out_aga(s(T173), tree(s(T172), T152, T153), tree(s(T172), T174, T153))
insertD_in_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193)) → U18_aga(T192, T188, T189, T190, T193, pE_in_gaga(T188, T192, T190, T193))
U18_aga(T192, T188, T189, T190, T193, pE_out_gaga(T188, T192, T190, T193)) → insertD_out_aga(T192, tree(T188, T189, T190), tree(T188, T189, T193))
insertD_in_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213)) → U19_aga(T214, T203, T204, T213, insertD_in_aga(s(T214), T204, T213))
insertD_in_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224)) → U20_aga(T223, T221, T203, T204, T224, lessB_in_ga(T221, T223))
U20_aga(T223, T221, T203, T204, T224, lessB_out_ga(T221, T223)) → insertD_out_aga(s(T223), tree(s(T221), T203, T204), tree(s(T221), T203, T224))
insertD_in_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_aga(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_aga(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → U22_aga(T227, T221, T203, T204, T228, insertD_in_aga(s(T227), T204, T228))
U22_aga(T227, T221, T203, T204, T228, insertD_out_aga(s(T227), T204, T228)) → insertD_out_aga(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228))
U19_aga(T214, T203, T204, T213, insertD_out_aga(s(T214), T204, T213)) → insertD_out_aga(s(T214), tree(0, T203, T204), tree(0, T203, T213))
U15_aga(T137, T131, T113, T114, T138, insertD_out_aga(s(T137), T114, T138)) → insertD_out_aga(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138))
U12_aga(T124, T113, T114, T123, insertD_out_aga(s(T124), T114, T123)) → insertD_out_aga(s(T124), tree(0, T113, T114), tree(0, T113, T123))
U8_gaga(T78, T86, T80, T87, insertD_out_aga(T86, T80, T87)) → pE_out_gaga(T78, T86, T80, T87)
U11_aga(T82, T78, T79, T80, T83, pE_out_gaga(T78, T82, T80, T83)) → insertD_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))

The argument filtering Pi contains the following mapping:
insertD_in_aga(x1, x2, x3)  =  insertD_in_aga(x2)
void  =  void
insertD_out_aga(x1, x2, x3)  =  insertD_out_aga(x2)
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U9_aga(x1, x2, x3, x4, x5)  =  U9_aga(x1, x2, x3, x5)
insertD_in_gga(x1, x2, x3)  =  insertD_in_gga(x1, x2)
insertD_out_gga(x1, x2, x3)  =  insertD_out_gga(x1, x2)
0  =  0
U9_gga(x1, x2, x3, x4, x5)  =  U9_gga(x1, x2, x3, x5)
U10_gga(x1, x2, x3, x4, x5, x6)  =  U10_gga(x1, x2, x3, x4, x6)
pC_in_ggga(x1, x2, x3, x4)  =  pC_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x1, x2, x3, x5)
lessA_in_gg(x1, x2)  =  lessA_in_gg(x1, x2)
lessA_out_gg(x1, x2)  =  lessA_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
pC_out_ggga(x1, x2, x3, x4)  =  pC_out_ggga(x1, x2, x3)
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x2, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x1, x2, x3, x5)
U11_gga(x1, x2, x3, x4, x5, x6)  =  U11_gga(x1, x2, x3, x4, x6)
pE_in_ggga(x1, x2, x3, x4)  =  pE_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4, x5)  =  U6_ggga(x1, x2, x3, x5)
lessB_in_gg(x1, x2)  =  lessB_in_gg(x1, x2)
lessB_out_gg(x1, x2)  =  lessB_out_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
pE_out_ggga(x1, x2, x3, x4)  =  pE_out_ggga(x1, x2, x3)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x1, x2, x3, x5)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x1, x2, x3, x5)
U12_gga(x1, x2, x3, x4, x5)  =  U12_gga(x1, x2, x3, x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x1, x2, x3, x4, x6)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x2, x3, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x1, x2, x3, x4, x6)
U16_gga(x1, x2, x3, x4, x5)  =  U16_gga(x1, x2, x3, x5)
U17_gga(x1, x2, x3, x4, x5, x6)  =  U17_gga(x1, x2, x3, x4, x6)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x1, x2, x3, x4, x6)
U19_gga(x1, x2, x3, x4, x5)  =  U19_gga(x1, x2, x3, x5)
U20_gga(x1, x2, x3, x4, x5, x6)  =  U20_gga(x1, x2, x3, x4, x6)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x1, x2, x3, x4, x6)
U22_gga(x1, x2, x3, x4, x5, x6)  =  U22_gga(x1, x2, x3, x4, x6)
U10_aga(x1, x2, x3, x4, x5, x6)  =  U10_aga(x2, x3, x4, x6)
pC_in_agga(x1, x2, x3, x4)  =  pC_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x2, x3, x5)
lessA_in_ag(x1, x2)  =  lessA_in_ag(x2)
lessA_out_ag(x1, x2)  =  lessA_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
pC_out_agga(x1, x2, x3, x4)  =  pC_out_agga(x1, x2, x3)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x2, x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x2, x3, x5)
U11_aga(x1, x2, x3, x4, x5, x6)  =  U11_aga(x2, x3, x4, x6)
pE_in_gaga(x1, x2, x3, x4)  =  pE_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4, x5)  =  U6_gaga(x1, x3, x5)
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
pE_out_gaga(x1, x2, x3, x4)  =  pE_out_gaga(x1, x3)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x1, x3, x5)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x1, x3, x5)
U12_aga(x1, x2, x3, x4, x5)  =  U12_aga(x2, x3, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x2, x3, x4, x6)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x2, x3, x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x2, x3, x4, x6)
U16_aga(x1, x2, x3, x4, x5)  =  U16_aga(x1, x2, x3, x5)
U17_aga(x1, x2, x3, x4, x5, x6)  =  U17_aga(x2, x3, x4, x6)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x2, x3, x4, x6)
U19_aga(x1, x2, x3, x4, x5)  =  U19_aga(x2, x3, x5)
U20_aga(x1, x2, x3, x4, x5, x6)  =  U20_aga(x2, x3, x4, x6)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x2, x3, x4, x6)
U22_aga(x1, x2, x3, x4, x5, x6)  =  U22_aga(x2, x3, x4, x6)
INSERTD_IN_AGA(x1, x2, x3)  =  INSERTD_IN_AGA(x2)
PE_IN_GAGA(x1, x2, x3, x4)  =  PE_IN_GAGA(x1, x3)
U7_GAGA(x1, x2, x3, x4, x5)  =  U7_GAGA(x1, x3, x5)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x2, x3, x4, x6)
U21_AGA(x1, x2, x3, x4, x5, x6)  =  U21_AGA(x2, x3, x4, x6)

We have to consider all (P,R,Pi)-chains

(45) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(46) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

INSERTD_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → PE_IN_GAGA(T78, T82, T80, T83)
PE_IN_GAGA(T78, T86, T80, T87) → U7_GAGA(T78, T86, T80, T87, lessB_in_ga(T78, T86))
U7_GAGA(T78, T86, T80, T87, lessB_out_ga(T78, T86)) → INSERTD_IN_AGA(T86, T80, T87)
INSERTD_IN_AGA(s(T124), tree(0, T113, T114), tree(0, T113, T123)) → INSERTD_IN_AGA(s(T124), T114, T123)
INSERTD_IN_AGA(s(T137), tree(s(T131), T113, T114), tree(s(T131), T113, T138)) → U14_AGA(T137, T131, T113, T114, T138, lessB_in_ga(T131, T137))
U14_AGA(T137, T131, T113, T114, T138, lessB_out_ga(T131, T137)) → INSERTD_IN_AGA(s(T137), T114, T138)
INSERTD_IN_AGA(s(T227), tree(s(T221), T203, T204), tree(s(T221), T203, T228)) → U21_AGA(T227, T221, T203, T204, T228, lessB_in_ga(T221, T227))
U21_AGA(T227, T221, T203, T204, T228, lessB_out_ga(T221, T227)) → INSERTD_IN_AGA(s(T227), T204, T228)

The TRS R consists of the following rules:

lessB_in_ga(0, s(T94)) → lessB_out_ga(0, s(T94))
lessB_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, lessB_in_ga(T99, T101))
U2_ga(T99, T101, lessB_out_ga(T99, T101)) → lessB_out_ga(s(T99), s(T101))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
lessB_in_ga(x1, x2)  =  lessB_in_ga(x1)
lessB_out_ga(x1, x2)  =  lessB_out_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
INSERTD_IN_AGA(x1, x2, x3)  =  INSERTD_IN_AGA(x2)
PE_IN_GAGA(x1, x2, x3, x4)  =  PE_IN_GAGA(x1, x3)
U7_GAGA(x1, x2, x3, x4, x5)  =  U7_GAGA(x1, x3, x5)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x2, x3, x4, x6)
U21_AGA(x1, x2, x3, x4, x5, x6)  =  U21_AGA(x2, x3, x4, x6)

We have to consider all (P,R,Pi)-chains

(47) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(48) Obligation:

Q DP problem:
The TRS P consists of the following rules:

INSERTD_IN_AGA(tree(T78, T79, T80)) → PE_IN_GAGA(T78, T80)
PE_IN_GAGA(T78, T80) → U7_GAGA(T78, T80, lessB_in_ga(T78))
U7_GAGA(T78, T80, lessB_out_ga(T78)) → INSERTD_IN_AGA(T80)
INSERTD_IN_AGA(tree(0, T113, T114)) → INSERTD_IN_AGA(T114)
INSERTD_IN_AGA(tree(s(T131), T113, T114)) → U14_AGA(T131, T113, T114, lessB_in_ga(T131))
U14_AGA(T131, T113, T114, lessB_out_ga(T131)) → INSERTD_IN_AGA(T114)
INSERTD_IN_AGA(tree(s(T221), T203, T204)) → U21_AGA(T221, T203, T204, lessB_in_ga(T221))
U21_AGA(T221, T203, T204, lessB_out_ga(T221)) → INSERTD_IN_AGA(T204)

The TRS R consists of the following rules:

lessB_in_ga(0) → lessB_out_ga(0)
lessB_in_ga(s(T99)) → U2_ga(T99, lessB_in_ga(T99))
U2_ga(T99, lessB_out_ga(T99)) → lessB_out_ga(s(T99))

The set Q consists of the following terms:

lessB_in_ga(x0)
U2_ga(x0, x1)

We have to consider all (P,Q,R)-chains.

(49) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • PE_IN_GAGA(T78, T80) → U7_GAGA(T78, T80, lessB_in_ga(T78))
    The graph contains the following edges 1 >= 1, 2 >= 2

  • U7_GAGA(T78, T80, lessB_out_ga(T78)) → INSERTD_IN_AGA(T80)
    The graph contains the following edges 2 >= 1

  • INSERTD_IN_AGA(tree(T78, T79, T80)) → PE_IN_GAGA(T78, T80)
    The graph contains the following edges 1 > 1, 1 > 2

  • INSERTD_IN_AGA(tree(0, T113, T114)) → INSERTD_IN_AGA(T114)
    The graph contains the following edges 1 > 1

  • U14_AGA(T131, T113, T114, lessB_out_ga(T131)) → INSERTD_IN_AGA(T114)
    The graph contains the following edges 3 >= 1

  • U21_AGA(T221, T203, T204, lessB_out_ga(T221)) → INSERTD_IN_AGA(T204)
    The graph contains the following edges 3 >= 1

  • INSERTD_IN_AGA(tree(s(T131), T113, T114)) → U14_AGA(T131, T113, T114, lessB_in_ga(T131))
    The graph contains the following edges 1 > 1, 1 > 2, 1 > 3

  • INSERTD_IN_AGA(tree(s(T221), T203, T204)) → U21_AGA(T221, T203, T204, lessB_in_ga(T221))
    The graph contains the following edges 1 > 1, 1 > 2, 1 > 3

(50) YES